package com.raycloud.dingtalk.starter.demo;

import com.raycloud.dingtalk.starter.annotation.Command;
import com.raycloud.dingtalk.starter.annotation.RayOption;
import com.raycloud.dingtalk.starter.handle.AbstractMapOptionCommandHandle;
import org.apache.commons.cli.Option;

import java.util.Map;

@Command(value = "behavior", description = "描述",
        options = {
                @RayOption(opt = "a", longOpt = "testa", hasArg = true, description = "a字段描述"),
                @RayOption(opt = "b", longOpt = "testb", hasArg = true, description = "b字段描述"),
                @RayOption(opt = "c", longOpt = "testc", hasArg = true, description = "c字段描述")
        })
public class TestCommandHandle extends AbstractMapOptionCommandHandle {

    @Override
    public String handle(Map<String, Option> optionMap) {
        // 处理业务逻辑
        return "success";
    }
}
